import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useGlobalStore = defineStore('global', () => {
  const collapsed = ref(false)
  const changeCollapsed = () => (collapsed.value = !collapsed.value)

  return { collapsed, changeCollapsed }
})
